#include <iostream>
#include <fstream>

#include "osm_converter.h"

#include "DBMaster.h"


int main(int argc, char * argv[])
{
    OsmConverter converter;
	if (argc > 1)
    {
        std::cout << "Input file is " << argv[1] << std::endl;
		converter = OsmConverter (argv[1]);
	}
	else
	{
		std::cout << "You do not enter input file. The default input file is \'map.osm\'." << std::endl;
		converter = OsmConverter ("map.osm");
	}

    DBMaster data = extractData(converter);	
	data.WriteData("out.xml", 0);
	
	return 0;
}
 